Optimization of Quasi Random Number Generators
نویسنده
چکیده
Monte Carlo simulations are based on Random Number Generators (RNG). Drawing random numbers often constitutes a considerable part of simulation time. Unrolling random numbers is a way to accelerate Monte Carlo simulations appreciably by speeding up any RNG. This method consists in a pre-generation and storage of random numbers in an array of values. This array is either directly included in the binary code during the compilation process or is written in binary files, which are mapped in memory at run time. The convoluted RNG algorithm is then bypassed and the numbers are directly picked in sequence in the array. This method has been proved to be quite efficient with small series of pseudo random numbers [1]. Another type of generator is very interesting for stochastic simulations, the Quasi Random Number Generator (QRNG) [2]. QRNGs gain time by improving the convergence in numerous simulations. Due to their fast convergence and the lack of replication, quasi Monte Carlo simulations are naturally inclined to be unrolled in arrays stored in random access memory. In this paper we present a benchmark on different recent computer architectures of the ”unrolling” technique using random access memory. We then discuss results obtained with classical RNGs (Quick and dirty, ran2 from numerical recipes [5], and Mersenne Twister [3]) and with quasi-random numbers using Sobol [6] and Nidereiter [4] (using the Gnu Scientific Library). By reducing by 30 the generation time of the Sobol algorithm in one dimension, the ”unrolling” optimization technique turned out to be really efficient on QRNGs. However multiple dimensions QRNGs are harder to optimize using only the random access memory. Actually, it creates huge arrays in the source files that are impossible to compile. More than that, the computation time taken to generate a 40 dimensions low discrepancy sequence, is only twice as important as that taken to generate a single dimension sequence. A solution to address those issues is explored, the memory mapping. This optimization technique cannot be as efficient as the ”unrolling” one, but has the advantage of being able to support very long number series. The gain variations are presented and solutions are discussed to adapt optimization techniques to multidimensional quasi random number generation.
منابع مشابه
Quasi- versus Pseudo-random Generators: Discrepancy, Complexity and Integration-error Based Comparison
Presented here are several quasiand pseudo-random number generators along with their numerical discrepancy, i.e., nonuniformity measure and computational/ time complexity. These generators have been compared and ranked based on discrepancy, complexity, and error in multiple Monte Carlo integrations. We believe that such a statistical comparison/ranking will be useful for solving real world prob...
متن کاملDesign of low power random number generators for quantum-dot cellular automata
Quantum-dot cellular automata (QCA) are a promising nanotechnology to implement digital circuits at the nanoscale. Devices based on QCA have the advantages of faster speed, lower power consumption, and greatly reduced sizes. In this paper, we are presented the circuits, which generate random numbers in QCA. Random numbers have many uses in science, art, statistics, cryptography, gaming, gambli...
متن کاملDesign of low power random number generators for quantum-dot cellular automata
Quantum-dot cellular automata (QCA) are a promising nanotechnology to implement digital circuits at the nanoscale. Devices based on QCA have the advantages of faster speed, lower power consumption, and greatly reduced sizes. In this paper, we are presented the circuits, which generate random numbers in QCA. Random numbers have many uses in science, art, statistics, cryptography, gaming, gambli...
متن کاملQuasi-Monte Carlo Node Sets from Linear Congruential Generators
In this paper we present a new approach to nding good lattice points. We employ the spectral test, a well-known gure of merit for uniform random number generators. This concept leads to an assessment of lattice points g that is closely related to the classical Babenko-Zaremba quantity (g; N). The associated lattice rules are good uniformly over a whole range of dimensions. Our numerical example...
متن کاملRandom-number Generators Physical Random-number Generators
R andom numbers have applications in many areas: simulation, game-playing, cryptography, statistical sampling, evaluation of multiple integrals, particletransport calculations, and computations in statistical physics, to name a few. Since each application involves slightly different criteria for judging the “worthiness” of the random numbers generated, a variety of generators have been develope...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2005